MessageSearchAdapter

open class MessageSearchAdapter : BaseAdapter<T, VH>

MessageSearchAdapter provides a binding from a BaseMessage type data set to views that are displayed within a RecyclerView. since 3.0.0

Functions

Link copied to clipboard
open fun getItem(position: Int): BaseMessage
Returns the BaseMessage in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getOnItemClickListener(): OnItemClickListener<BaseMessage>
Returns a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<BaseMessage>, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<BaseMessage>
Called when RecyclerView needs a new BaseViewHolder<BaseMessage> of the given type to represent an item.
Link copied to clipboard
open fun setMessageDisplayDataProvider(@Nullable messageDisplayDataProvider: MessageDisplayDataProvider)
Sets MessageDisplayDataProvider, which is used to generate data before they are sent or rendered.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the itemView is clicked.

Properties

Link copied to clipboard
var items: List<BaseMessage>